//
//  NCChatMessage.h
//  AGEmojiKeyboard
//
//  Created by LINAICAI on 2018/4/16.
//

#import <Foundation/Foundation.h>

///消息发送状态
typedef NS_OPTIONS(NSUInteger, NCChatMessageSendStatus) {
    NCChatMessageSendSuccess = 1 << 0,
    NCChatMessageSending = 1 << 1,
    NCChatMessageSendFail = 1 << 2,
};
@interface NCChatMessage : NSObject
///消息发送者ID
@property(nonatomic , copy)NSString *senderId;
///消息发送者名字
@property(nonatomic , copy)NSString *userName;
///消息发送者头像
@property(nonatomic , copy)NSString *userAvator;
///消息发送时间
@property(nonatomic , copy)NSDate *date;
///消息发送状态
@property(nonatomic , assign)NCChatMessageSendStatus status;
///是否显示时间
@property(nonatomic , assign)BOOL showTime;

///本地二进制内容,文本消息时为nil
@property(nonatomic , copy)NSString *filePath;

///消息发送状态
//@property(nonatomic , assign)NSTimeInterval timeInterval;

- (instancetype)initWithSenderId:(NSString *)senderId date:(NSDate *)date;
@end
